<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>添加设备</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="js/time.js"> </script>
	</head>

	<body>
	<s:include value="head.jsp" ></s:include>
		<div class="content">
			<h1>
				添加设备
			</h1>
			<s:form action="addDevice" namespace="/admin">
				<s:textfield label="设备号*" name="deviceNo"></s:textfield>
				<s:textfield label="ip地址*" name="ip"></s:textfield>
				<s:textfield label="端口号*" name="portNo"></s:textfield>
				<s:textfield label="考勤起始时间" name="startTime" onclick="_SetTime(this)"></s:textfield>
				<s:textfield label="考勤结束时间" name="endTime" onclick="_SetTime(this)"></s:textfield>
				<td><s:submit value="提交" theme="simple"></s:submit></td>
				<td><s:reset value="重置" theme="simple"></s:reset></td>
			</s:form>
		</div>
	</body>
</html>
